fastreport打印 示例大全
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows.Forms;using PrintService;namespace Print{ public partial class Form1 : Form { private string message = string.Empty; private StufaceService stufaceservice = new StufaceService(); private MyVideoService myvideoservice = new MyVideoService(); public Form1() { InitializeComponent(); } /// <summary> /// 打印 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button1_Click(object sender, EventArgs e) { stufaceservice.Stuface(out message); Clear(); } private void Clear() { if (message == "打印成功") { MessageBox.Show(message); } else { MessageBox.Show(message,"提示", MessageBoxButtons.OK); } } /// <summary> /// 拍照 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button2_Click(object sender, EventArgs e) { MyVideoService.VideoService( out message); } }}
评论